package net.yunzhanyi.generic.domain.model;

import java.io.Serializable;
import java.util.List;

public class Poetry implements Serializable {
    /**
     * 诗词主键
     */
    private Long poetryId;

    /**
     * 诗词标题
     */
    private String poetryTitle;

    /**
     * 诗词朝代
     */
    private String poetryDynasty;

    /**
     * 诗词类型
     */
    private String poetryType;

    /**
     * 诗词作者
     */
    private String poetryAuthor;

    /**
     * 作者id
     */
    private Long authorId;

    /**
     * 诗词内容
     */
    private String poetryContent;

    /**
     * 标签
     */
    private String tags;

    private Integer dynastyId;
    private List<PoetryDetail> poetryDetails;

    private static final long serialVersionUID = 1L;

    public Long getPoetryId() {
        return poetryId;
    }

    public void setPoetryId(Long poetryId) {
        this.poetryId = poetryId;
    }

    public String getPoetryTitle() {
        return poetryTitle;
    }

    public void setPoetryTitle(String poetryTitle) {
        this.poetryTitle = poetryTitle;
    }

    public String getPoetryDynasty() {
        return poetryDynasty;
    }

    public void setPoetryDynasty(String poetryDynasty) {
        this.poetryDynasty = poetryDynasty;
    }

    public String getPoetryType() {
        return poetryType;
    }

    public void setPoetryType(String poetryType) {
        this.poetryType = poetryType;
    }

    public String getPoetryAuthor() {
        return poetryAuthor;
    }

    public void setPoetryAuthor(String poetryAuthor) {
        this.poetryAuthor = poetryAuthor;
    }

    public Long getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Long authorId) {
        this.authorId = authorId;
    }

    public String getPoetryContent() {
        return poetryContent;
    }

    public void setPoetryContent(String poetryContent) {
        this.poetryContent = poetryContent;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getDynastyId() {
        return dynastyId;
    }

    public void setDynastyId(Integer dynastyId) {
        this.dynastyId = dynastyId;
    }

    public List<PoetryDetail> getPoetryDetails() {
        return poetryDetails;
    }

    public void setPoetryDetails(List<PoetryDetail> poetryDetails) {
        this.poetryDetails = poetryDetails;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Poetry{");
        sb.append("poetryId=").append(poetryId);
        sb.append(", poetryTitle='").append(poetryTitle).append('\'');
        sb.append(", poetryDynasty='").append(poetryDynasty).append('\'');
        sb.append(", poetryType='").append(poetryType).append('\'');
        sb.append(", poetryAuthor='").append(poetryAuthor).append('\'');
        sb.append(", authorId=").append(authorId);
        sb.append(", poetryContent='").append(poetryContent).append('\'');
        sb.append(", tags='").append(tags).append('\'');
        sb.append(", poetryDetails=").append(poetryDetails);
        sb.append('}');
        return sb.toString();
    }
}
